function  getAllInfo(){
	//打印机状态
	var status=FileStream.ReadStringFromProfile("Printer", "PrinterStatus", "", "C:\\ATM\\ini\\DevStatus.ini");
	var statusPaper1=FileStream.ReadStringFromProfile("Printer", "Tray1Status", "", "C:\\ATM\\ini\\DevStatus.ini");
	var statusPaper2=FileStream.ReadStringFromProfile("Printer", "Tray2Status", "", "C:\\ATM\\ini\\DevStatus.ini");
	var statusPaper3=FileStream.ReadStringFromProfile("Printer", "Tray3Status", "", "C:\\ATM\\ini\\DevStatus.ini");
	
	var SuppliesLevel=ZKJCNonStdEqpt.GetStatus("StatusToner",0);//墨盒状态
	if(SuppliesLevel=='PTR_TONERFULL'){
		SuppliesLevel='正常';
	}else{
		SuppliesLevel='不正常';
	}
	
	var  statusPaper;//纸盒状态
	if(statusPaper1=='正常' && statusPaper2=='正常' && statusPaper3=='正常'){
	    statusPaper='正常';
	}else{
	    statusPaper = '不正常';
	}
	
	//打印机网络地址
	var address=FileStream.ReadStringFromProfile("Printer", "IP", "", "C:\\ATM\\ini\\DevStatus.ini");
	
	var deviceNum =FileStream.ReadStringFromProfile("device", "deviceNum", "", "C:\\ATM\\ini\\DevStatus.ini");//设备编号
	var date =FileStream.ReadStringFromProfile("device", "date", "", "C:\\ATM\\ini\\DevStatus.ini");//设备编号
	
	return status+","+statusPaper+","+SuppliesLevel+","+address+","+deviceNum+","+date+","+statusPaper1+","+statusPaper2+","+statusPaper3;
}

//获得门信息
function getFoorInfo(){
	var frontDoor = FileStream.ReadStringFromProfile("DoorStatus", "FrontDoorStatus", "", "C:\\ATM\\ini\\DevStatus.ini");
	var backDoor = FileStream.ReadStringFromProfile("DoorStatus", "BackDoorStatus", "", "C:\\ATM\\ini\\DevStatus.ini");
	var sideDoor = FileStream.ReadStringFromProfile("DoorStatus", "SideDoorStatus", "", "C:\\ATM\\ini\\DevStatus.ini");
	if('1' == frontDoor){
		frontDoor = '打开';
	}else if('0' == frontDoor){
		frontDoor = '关闭';
	} else {
		frontDoor = '设备未安装';
	}
	
	if('1' == backDoor){
		backDoor = '打开';
	}else if('0' == backDoor){
		backDoor = '关闭';
	} else {
		backDoor = '设备未安装';
	}
	
	if('1' == sideDoor){
		sideDoor = '打开';
	}else if('0' == sideDoor){
		sideDoor = '关闭';
	} else {
		sideDoor = '设备未安装';
	}
	return frontDoor+","+backDoor+","+sideDoor;
}

//得到盖章机状态
function getStampinfo(){
	var p_BatchStatusKey = "^StampCurrentCount^StatusTotalStamped^StatusMovePaperOK^StatusStampOK";
	ZKJCNonStdEqpt.GetBatchStatusStamp(p_BatchStatusKey,0);
	
	var stamper = FileStream.ReadStringFromProfile("Stamper", "Stamper", "", "C:\\ATM\\ini\\DevStatus.ini");
	var stampcurrentcount = FileStream.ReadStringFromProfile("Stamper", "Stampcurrentcount", "", "C:\\ATM\\ini\\DevStatus.ini");
	var stamptotalcount = FileStream.ReadStringFromProfile("Stamper", "StampTotalCount", "", "C:\\ATM\\ini\\DevStatus.ini");
	var stampmaxcount = FileStream.ReadStringFromProfile("Stamper", "StampMaxCount", "", "C:\\ATM\\ini\\DevStatus.ini");
	var stampmovepaperok = FileStream.ReadStringFromProfile("Stamper", "StampMovePaperoOK", "", "C:\\ATM\\ini\\DevStatus.ini");
	var statusstampok = FileStream.ReadStringFromProfile("Stamper", "StatusStampOK", "", "C:\\ATM\\ini\\DevStatus.ini");
	
	return stamper+','+stampcurrentcount+','+stamptotalcount+','+stampmaxcount+','+stampmovepaperok+','+statusstampok;
}

//得到收票头状态
function getShouPiaoTouInfo(){
	var r_BatchStatusKey = "^StatusSavePowerModeCR^StatusInkCR^eStatusCR";
	ZKJCNonStdEqpt.ReaderGetBatchStatus(r_BatchStatusKey,0);
	
	var MultiPaperScanner = FileStream.ReadStringFromProfile("MultiPaperScanner", "MultiPaperScanner", "", "C:\\ATM\\ini\\DevStatus.ini");
	var MultiPaperScannerCount = FileStream.ReadStringFromProfile("MultiPaperScanner", "MultiPaperScannerCount", "", "C:\\ATM\\ini\\DevStatus.ini");
	var StatusSavePowerModeCR = FileStream.ReadStringFromProfile("MultiPaperScanner", "StatusSavePowerModeCR", "", "C:\\ATM\\ini\\DevStatus.ini");
	var StatusInkCR = FileStream.ReadStringFromProfile("MultiPaperScanner", "StatusInkCR", "", "C:\\ATM\\ini\\DevStatus.ini");
	var StatusBillBox = FileStream.ReadStringFromProfile("MultiPaperScanner", "StatusBillBox", "", "C:\\ATM\\ini\\DevStatus.ini");
	var eStatusCR = FileStream.ReadStringFromProfile("MultiPaperScanner", "eStatusCR", "", "C:\\ATM\\ini\\DevStatus.ini");
	return MultiPaperScanner+','+MultiPaperScannerCount+','+StatusSavePowerModeCR+','+StatusInkCR+','+StatusBillBox+','+eStatusCR;
}

//得到基本设置
function getDeviceBase(){
	var deviceNum =FileStream.ReadStringFromProfile("device", "deviceNum", "", "C:\\ATM\\ini\\DevStatus.ini");//设备编号
	var fenHangHao=FileStream.ReadStringFromProfile("device", "fenHangHao", "", "C:\\ATM\\ini\\DevStatus.ini");//分行号
	var netNum=FileStream.ReadStringFromProfile("device", "netNum", "", "C:\\ATM\\ini\\DevStatus.ini");//网点编号
	var dianZiGuiYuan=FileStream.ReadStringFromProfile("device", "dianZiGuiYuan", "", "C:\\ATM\\ini\\DevStatus.ini");//电子柜员
	return deviceNum+","+fenHangHao+","+netNum+","+dianZiGuiYuan;
}

//得到设备号，网络号
function getEquipmentInfo(){
	var deviceNum =FileStream.ReadStringFromProfile("device", "deviceNum", "", "C:\\ATM\\ini\\DevStatus.ini");//设备编号
	var netNum=FileStream.ReadStringFromProfile("device", "netNum", "", "C:\\ATM\\ini\\DevStatus.ini");//网点编号
	var dianZiGuiYuan=FileStream.ReadStringFromProfile("device", "dianZiGuiYuan", "", "C:\\ATM\\ini\\DevStatus.ini");//电子柜员
	return deviceNum+","+netNum+","+dianZiGuiYuan;
}

function getDevice(){
	var dianZiGuiYuan=FileStream.ReadStringFromProfile("device", "dianZiGuiYuan", "", "C:\\ATM\\ini\\DevStatus.ini");//电子柜员
	var netNum=FileStream.ReadStringFromProfile("device", "netNum", "", "C:\\ATM\\ini\\DevStatus.ini");//网点编号
	return  dianZiGuiYuan+","+netNum;
}

//记日志
function writeLogToWeihu(str){
	FileStream.WriteLog("C:\\ATM\\log\\weihu.log", str+"\r\n", true);
}











